package com.itboye.hutouben.util;

import android.os.AsyncTask;
import android.widget.TextView;

/**
 * Created by Mr.w on 2017/2/22.
 */

public class MyTask extends AsyncTask<String, Integer, String> {
    TextView textView;
    String address;

    public void setTextView(TextView textView) {
        this.textView = textView;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    protected String doInBackground(String... params) {
        return address;
    }

    @Override
    protected void onPostExecute(String s) {
        textView.setText(address);
    }
}
